package com.atguigu.tingshu.account.delay;

import com.atguigu.tingshu.account.mapper.UserAccountDetailMapper;
import com.atguigu.tingshu.account.mapper.UserAccountMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;

import java.util.concurrent.ExecutorService;

/**
 * title:
 * author: zgl
 * date: 2024/3/18
 * description：
 */
@Component
public class DelayClient {
    @Autowired
    private RedisTemplate redisTemplate;

    @Autowired
    private UserAccountMapper userAccountMapper;

    @Autowired
    private UserAccountDetailMapper detailMapper;
    @Autowired
    private ExecutorService executorService;


    public DelayUtil setAttribute() {
        return new DelayUtil(redisTemplate, userAccountMapper, detailMapper,executorService);
    }
}
